package com.codeduck.test.entity;

/**
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @date: 2023/9/16
 */
public class PayFileList {
    private String account;
    private String acctName;
    private String recName;
    private String recAcct;
    private int amount;

    public static class Builder {
        private String account;
        private String acctName;
        private String recName;
        private String recAcct;
        private int amount;

        public Builder account(String val) {
            account = val;
            return this;
        }

        public Builder acctName(String val) {
            acctName = val;
            return this;
        }
        public Builder recName(String val) {
            recName = val;
            return this;
        }
        public Builder recAcct(String val) {
            recAcct = val;
            return this;
        }
        public Builder amount(int val) {
            amount = val;
            return this;
        }

        public PayFileList build() {
            return  new PayFileList(this);
        }
    }

    private PayFileList(Builder builder) {
        account = builder.account;
        acctName = builder.acctName;
        recName = builder.recName;
        recAcct = builder.recAcct;
        amount = builder.amount;
    }

    public String getAccount() {
        return account;
    }

    public String getAcctName() {
        return acctName;
    }

    public String getRecName() {
        return recName;
    }

    public String getRecAcct() {
        return recAcct;
    }

    public int getAmount() {
        return amount;
    }

    public static class Main {
        public static void main(String[] args) {


            PayFileList payFileList = new PayFileList.Builder()
                    .account("1")
                    .acctName("1")
                    .amount(1)
                    .build();
            System.out.println(payFileList.getAccount());
            System.out.println(payFileList.getRecAcct());
        }
    }
}
